
package org.springxrsk.modules.classes.service.impl;

import org.springxrsk.modules.classes.pojo.entity.QyClassesLessonsDetailsEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesLessonsDetailsVO;
import org.springxrsk.modules.classes.excel.QyClassesLessonsDetailsExcel;
import org.springxrsk.modules.classes.mapper.QyClassesLessonsDetailsMapper;
import org.springxrsk.modules.classes.service.IQyClassesLessonsDetailsService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;
import java.util.Map;

/**
 * 课表详情 服务实现类
 *
 *  @author
 * @since 2024-06-23
 */
@Service
public class QyClassesLessonsDetailsServiceImpl extends BaseServiceImpl<QyClassesLessonsDetailsMapper, QyClassesLessonsDetailsEntity> implements IQyClassesLessonsDetailsService {

	@Override
	public  QyClassesLessonsDetailsVO selectDetail(QyClassesLessonsDetailsVO qyClassesLessonsDetails) {
		return  baseMapper.selectDetail(qyClassesLessonsDetails);
	}

	@Override
	public IPage<QyClassesLessonsDetailsVO> selectQyClassesLessonsDetailsPage(IPage<QyClassesLessonsDetailsVO> page, QyClassesLessonsDetailsVO qyClassesLessonsDetails) {
		return page.setRecords(baseMapper.selectQyClassesLessonsDetailsPage(page, qyClassesLessonsDetails));
	}


	@Override
	public List<QyClassesLessonsDetailsExcel> exportQyClassesLessonsDetails(Wrapper<QyClassesLessonsDetailsEntity> queryWrapper) {
		List<QyClassesLessonsDetailsExcel> qyClassesLessonsDetailsList = baseMapper.exportQyClassesLessonsDetails(queryWrapper);
		//qyClassesLessonsDetailsList.forEach(qyClassesLessonsDetails -> {
		//	qyClassesLessonsDetails.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyClassesLessonsDetails.getType()));
		//});
		return qyClassesLessonsDetailsList;
	}

	@Override
	public void realReamove(Map<String, Object> map) {
		 baseMapper.realReamove(map);
	}

}
